// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addFileTrain POST /api/file/train/add */
export async function addFileTrainUsingPost(
  body: API.FileTrainAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFileTrainVO_>('/api/file/train/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteFileTrain POST /api/file/train/delete */
export async function deleteFileTrainUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/file/train/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** editFileTrain POST /api/file/train/edit */
export async function editFileTrainUsingPost(
  body: API.FileTrainEditRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/file/train/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getFileTrainById GET /api/file/train/get */
export async function getFileTrainByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFileTrainByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFileTrain_>('/api/file/train/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getFileTrainVOById GET /api/file/train/get/vo */
export async function getFileTrainVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFileTrainVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFileTrainVO_>('/api/file/train/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listFileTrainByPage POST /api/file/train/list/page */
export async function listFileTrainByPageUsingPost(
  body: API.FileTrainQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageFileTrain_>('/api/file/train/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listFileTrainVOByPage POST /api/file/train/list/page/vo */
export async function listFileTrainVoByPageUsingPost(
  body: API.FileTrainQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageFileTrainVO_>('/api/file/train/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
